package com.kathysierra.www;

import java.io.Serializable;

public class Postac implements Serializable {
    private static final long serialVersionUID = 6006814881821347846L;
    
    int moc;
    String typ;
    transient Bron[] bronie = new Bron[5];
    
    public Postac(String typ, int moc){
        this.typ = typ;
        this.moc = moc;
    }
    
    public Postac(){
        this("czlowiek", 2);
        bronie[0] = new Bron();
        bronie[1] = new Bron("kosa");
    }
    
    public void zwiekszMoc(int dawka){
        moc += dawka;
    }
    
    public void pokazBronie(){
        for(Bron e : bronie){
            System.out.print(e + " ");
            System.out.println();
        }
    }

}
